package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

/**
 * PROJECT_NAME: sky-take-out
 * NAME: EmployeeService
 * USER: SHINIAN
 * DATE: 2022/12/12
 * DESCRIPTION : B端-员工信息服务层接口
 */
public interface EmployeeService {

    /**
     * 员工登录方法
     *
     * @param employeeLoginDTO 员工登录信息的DTO(用户名+密码)
     * @return 查询到的员工信息
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);
    //新增员工基本信息 json文件
    void addEmployee(EmployeeDTO employeeDTO);
    //员工分页查询
    PageResult selectPage(EmployeePageQueryDTO employeePageQueryDTO);

    //根据员工id查询
    Employee selectById(Long id);

    //更新员工信息
    void updateEmp(Employee employee);
    //修改密码
    void editPassword(PasswordEditDTO passwordEditDTO);
}
